package com.agriculture.monitor.service;

import com.agriculture.monitor.base.ResultInfo;
import com.agriculture.monitor.dto.BasePage;
import com.agriculture.monitor.dto.PasswordRequest;
import com.agriculture.monitor.dto.UserPage;
import com.agriculture.monitor.entity.User;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author admin
 * @since 2021-07-15
 */
public interface IUserService extends IService<User> {

    ResultInfo<?> login(User user);

    ResultInfo<?> create(User user);

    ResultInfo<?> password(PasswordRequest passwordRequest);


    ResultInfo<?> childrenPage(BasePage basePage);

    Page<User> listPage(UserPage basePage);

    ResultInfo change(User user);
}
